<?php

namespace App\HttpController\Curl;

use App\System\Http\AbstractInterface\Controller;
use App\System\Component\Curl\HttpCurl;

class Index extends Controller {
	public function index2() {
	}
	
	/**
	 *
	 * {@inheritdoc}
	 *
	 * @see \App\System\Http\AbstractInterface\Controller::index()
	 */
	public function index() {
		$a = HttpCurl::request ( "http://chat.7b620.cn/posttest", "post", array (
				'user_uid' => 'root',
				'user_pwd' => '123456' 
		) );
		$b = HttpCurl::request ( 'http://chat.7b620.cn/Api/Upload', 'post', array (
				'file' => '@/var/www/html/Chat/banner.jpg' 
		) );
		$c = HttpCurl::request ( 'http://chat.7b620.cn/login', 'get', array (
				'b' => 456 
		) );
		echo "<pre>";
		var_dump ( $a [0] );
		var_dump ( $b [0] );
		var_dump ( $c [0] );
		echo "<pre>";
	}
}